<template>
	<view class="orderTitle">
		<view class="left">
			<text class="state" v-if="is_state">{{state}}</text>
			<view class="order-num">
				<text>{{orderNum}}</text>
				<image src="@/static/img/orderHome/copy-icon.png" mode="widthFix"></image>
			</view>
		</view>
		<view class="right">
			<text space="emsp">{{rightText}}</text>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				
			}
		},
		name:'orderTitle',
		props:{
			state:{
				type:String,
				default:''
			},
			orderNum:{
				type:String,
				default:''
			},
			rightText:{
				type:String,
				default:''
			},
			is_state:{
				type:Boolean,
				default:true
			}
			
		}
	}
</script>

<style lang="scss" scoped>
	.orderTitle{
		height: 78rpx;
		background-color: #fff;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 30rpx;
		.left{
			display: flex;
			align-items: center;
			.state{
				font-size: 24rpx;
				font-weight: 500;
				color: #ff6b35;
				margin-right: 40rpx;
			}
			.order-num{
				text{
					font-size: 24rpx;
					font-weight: 500;
					color: #999999;
					margin-right: 10rpx;
				}
				image{
					width: 20rpx;
				}
			}
		}
		.right{
			text{
				font-size: 24rpx;
				font-weight: 500;
				color: #999999;
			}
		}
	}
</style>
